package ooday05;

import javax.swing.*;

public enum Season {

    //SPRING,SUNMER,AUTUM,WINTER;//表示四个对象---4个常量

    SPRING("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUM("秋天","凉爽"),
    WINTER("冬天","冷");






    private String seasonName;
    private String seasonDesc;




    Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public void setSeasonName(String seasonName) {
        this.seasonName = seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    public void setSeasonDesc(String seasonDesc) {
        this.seasonDesc = seasonDesc;
    }
}





